package com.smartstate.admin.biz.entity.bo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.smartstate.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 用户字典表
 *
 * @author HuChenXin
 * @email 844121763@qq
 * @date 2021-08-05 17:16:05
 */
@Data
@Entity
@TableName("user_dictionary_table")
@ApiModel(value = "UserDictionaryTable", description = "用户字典表表")
public class UserDictionaryTableEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
//    @TableId(type = IdType.INPUT)
//    @TableField(fill = FieldFill.INSERT)
//    @ApiModelProperty(value = "主键")
//    private String id;
    /**
     * 字典key
     */
    @ApiModelProperty(value = "字典key")
    @Column(name = "`key`")
    private String key;
    /**
     * 字典value
     */
    @ApiModelProperty(value = "字典value")
    @TableField(value="value")
    private String value;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @TableField(fill = FieldFill.INSERT)
    private String userId;
    /**
     * 企业ID
     */
    @ApiModelProperty(value = "企业ID")
    @TableField(fill = FieldFill.INSERT)
    private String enterpriseId;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
//    @TableLogic
    private Integer status=0;
    /**
     * 创建时间
     */
//    @ApiModelProperty(value = "创建时间")
//    @TableField(fill = FieldFill.INSERT)
//    private LocalDateTime createTime;
    /**
     * 创建人
     */
//    @ApiModelProperty(value = "创建人")
//    @TableField(fill = FieldFill.INSERT)
//    private String createBy;
    /**
     * 修改时间
     */
//    @ApiModelProperty(value = "修改时间")
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private LocalDateTime updateTime;
    /**
     * 修改人
     */
//    @ApiModelProperty(value = "修改人")
//    @TableField(fill = FieldFill.INSERT_UPDATE)
//    private String updateBy;

}
